﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Driver_List.aspx.cs" Inherits="WebUI.Driver.Driver_List" %>

<asp:Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">

    驾驶员编号：<asp:TextBox ID="txtPersonSn" runat="server" Width="60px" ForeColor="#404040"></asp:TextBox>驾驶员姓名：<asp:TextBox
        ID="txtPersonName" runat="server" Width="58px" ForeColor="#404040"></asp:TextBox>电话：<asp:TextBox ID="txtTel"
            runat="server" Width="58px" ForeColor="#404040"></asp:TextBox>驾驶车辆类型：<asp:DropDownList ID="ddrDriverType"
                runat="server" ForeColor="#404040">
                <asp:ListItem Value="0">所有车辆</asp:ListItem>
                <asp:ListItem>大型车</asp:ListItem>
                <asp:ListItem>中型车</asp:ListItem>
                <asp:ListItem>小型车</asp:ListItem>
            </asp:DropDownList>状态：<asp:DropDownList ID="ddrStateType" runat="server" ForeColor="#404040">
                <asp:ListItem Value="0">所有</asp:ListItem>
                <asp:ListItem>正常</asp:ListItem>
                <asp:ListItem>运行</asp:ListItem>
                <asp:ListItem>休假</asp:ListItem>
            </asp:DropDownList>
    <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查找" ForeColor="#404040" /><br />
    <div style="width:750px;margin-top:15px;">
    <asp:GridView ID="grvDriverList" runat="server" AutoGenerateColumns="False" OnRowDeleting="grvDriverList_RowDeleting" AllowPaging="True" OnPageIndexChanging="grvDriverList_PageIndexChanging" PageSize="8" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal" Width="750px">
        <Columns>
            <asp:BoundField DataField="PersonSn" HeaderText="编号" />
            <asp:HyperLinkField DataNavigateUrlFields="PersonSn" DataTextField="PersonName" HeaderText="驾驶员姓名"
                NavigateUrl="~/Driver/Driver_Modify.aspx" DataNavigateUrlFormatString="Driver_Modify.aspx?PersonSn={0}" />
            <asp:BoundField DataField="driverType" HeaderText="驾驶车辆类型" />
            <asp:BoundField DataField="licence" HeaderText="驾照等级" />
            <asp:BoundField DataField="tel" HeaderText="电话" />
            <asp:BoundField DataField="address" HeaderText="地址" />
            <asp:BoundField DataField="driverState" HeaderText="状态" />
            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#333333" />
        <RowStyle BackColor="White" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
        <div style="text-align:right; margin-top:10px;">
    <asp:HyperLink ID="hylAddDriver" runat="server" NavigateUrl="~/Driver/Driver_Modify.aspx" Height="23px" Width="65px">增加驾驶员</asp:HyperLink>&nbsp;
    </div></div>
</asp:Content>